{include file=$header_start}
{strip}
<script src="{$siteroot}/includes/js/admin/state.js" type="text/javascript"></script>
{/strip}
{include file=$header_end}
 <div class="contain">
      {include file=$left_menu}
      <div class="right_contain">
         <div class="heading_box">Add State</div>
         <div class="whitebox">
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
           {$msg}
         </div>
         {/if}
         <!--Message Div End-->
         <form name="frmAddState" id="frmAddState" action="" method="post">
          <input type="hidden" id="page" name="page" value="{$page}" />
         <div style="min-height:250px;">
          <!--Form Contain start-->
           <div class="form_fieldbox">
             <dl>
              <dt>Select Country:<span class="error">*</span></dt>
              <dd><select name="country" id="country" class="select">
              
              {section name=i loop=$countryArray}
              <option value="{$countryArray[i].country_id}" {if $countryArray[i].country_id eq $smarty.post.country} selected="selected" {/if}>{$countryArray[i].country_name}</option>
              {/section}
              </select></dd>
              <div class="clear"></div>
             </dl>
             <dl>
              <dt>State Name:<span class="error">*</span></dt>
              <dd><input type="text" class="input" name="statename" id="statename" value="{$smarty.post.statename}" maxlength="20"/></dd>
              <div class="clear"></div>
             </dl>
             <dl>
              <dt>State ISO Code:<span class="error">*</span></dt>
              <dd><input type="text" class="input" name="siso_code" id="siso_code" value="{$smarty.post.siso_code}" maxlength="6" /></dd>
              <div class="clear"></div>
             </dl>
             
              <dt>&nbsp;</dt>
            
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="addstate_btn" id="addstate_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='{$siteroot}/admin/home.php?q=state&page={$smarty.get.page}';"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
{include file=$footer}